home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
demo
/
mag
/
amoner06.dms
/
amoner06.adf
/
Starfield.Amos
/
Starfield.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1992-02-23
|
2KB
|
82 lines
Centre "Press A key to terminate startfield!"
Wait 100
'this program was created by Ryan Scott of PLAYFIELD!
'PLAYFIELD! is the Journal of Creative AMOS Programming
'for more information and sample issue, send $1 or long SASE to
'5180 NE 6th Avenue #624 Ft Lauderdale FL 33334
NUMOFSTARS=60
Fade 4
Dim C(10)
Cls 0
'get bobs
Get Bob 10,0,0 To 1,1 : Rem bob 10 is a blank!
Ink 1,0
Plot 0,0
Get Bob 1,0,0 To 1,1
Plot 1,0
Get Bob 2,0,0 To 2,1
Plot 0,0,2 : Plot 1,0,0
Get Bob 3,0,0 To 1,1
Plot 1,0,2
Get Bob 4,0,0 To 2,1
BIGX=640
BIGY=311*2
If Ntsc Then BIGY=263*2
Screen Open 0,640,BIGY,4,Hires+Laced
Double Buffer
Hide
Curs Off : Cls 0 : Flash Off : Autoback 0 : Bob Update Off
SMALLX=BIGX/14 : SMALLY=BIGY/14
SMALLPOSX=BIGX/2-SMALLX/2 : SMALLPOSY=BIGY/2-SMALLY/2 : Rem center it
Clear Key
Synchro Off
For T=1 To 50
Bob T,0,0,10
Channel T To Bob T
A$="M "+Str$(Rnd(150))-" "+","+Str$(Rnd(150))-" "+","+Str$(Rnd(150))-" "
Amal T,A$
Amal On T
Next T
Repeat
'
Add BB,1,1 To NUMOFSTARS
If BB=NUMOFSTARS
Add CCOUNT,1,0 To 1
If CCOUNT=0
C(3)=Rnd($FFF)
Repeat
R=Rnd($F) : G=Rnd($F) : B=Rnd($F)
Until(R>$A) or(G>$A) or(B>$A)
For T=3 To 1 Step -1
C(T)=R*$100+G*$10+B
R=(R*5)/6 : G=(G*5)/6 : B=(B*5)/6
Next T
Fade 10,,C(1),C(2),C(3)
End If
End If
If Chanmv(BB)=False
Repeat
X=Rnd(SMALLX)
Y=Rnd(SMALLY)
Until(X<10 or X>SMALLX-10) or(Y<10 or Y>SMALLY-10)
X2=(X*BIGX)/SMALLX
Y2=(Y*BIGY)/SMALLY
SMALLPOSX=X Screen(X Mouse)-SMALLX/2
SMALLPOSY=Y Screen(Y Mouse)-SMALLY/2
Add X,SMALLPOSX
Add Y,SMALLPOSY
RRUN=X2-X : RISE=Y2-Y
Channel BB To Bob BB
Amreg(0)=RRUN : Amreg(1)=RISE
Bob BB,X,Y,1
Amreg(2)=40
Amal BB,"A 1,(1,10)(2,10)(3,10)(4,10)(10,1); M RA,RB,RC"
Amal On BB
End If
Synchro
Bob Draw : Screen Swap : Wait Vbl : Bob Clear
'
Until Inkey$<>""
Wait 50
Default
Run "amoner006:autoexec.amos"